import React from 'react'
import ReactDOM from 'react-dom/client'
import DynicaRoute from './DynicaRoute.jsx'
import 'normalize.css'
import {BrowserRouter} from 'react-router-dom'
import api from './api/index.js'
import {Provider} from 'react-redux'
import store from './store/index.js'
//将api挂载到React全局
React.$api=api
ReactDOM.createRoot(document.getElementById('root')).render(
    <Provider store={store}>
      <BrowserRouter>
          <DynicaRoute />
      </BrowserRouter>
    </Provider>
)
